from .models import *
from rest_framework.serializers import ModelSerializer
from rest_framework import serializers

class User_Ser(ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class showUser_Ser(ModelSerializer):
    department = serializers.StringRelatedField()
    class Meta:
        model = User
        fields = '__all__'


class Department_Ser(ModelSerializer):
    class Meta:
        model = Department
        fields = '__all__'

class Goods_Ser(ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'

class Car_Ser(ModelSerializer):
    class Meta:
        model = Car
        fields = '__all__'